<template>
  <div id="scroll-board">
    <dv-scroll-board :config="config" />
  </div>
</template>

<script>
export default {
  name: 'ScrollBoard',
  data () {
    return {
      config: {
        header: ['分厂名称', '能耗','单位'],
        data: [
          ['动力', '1500.00', 'Kw/H'],
          ['化工', '2411.05', 'Kw/H'],
          ['供电', '873.46', 'Kw/H'],
          ['气体', '4351.23', 'Kw/H'],
          ['污水', '1102.89', 'Kw/H'],
          ['液化', '3375.07', 'Kw/H'],
          ['气体', '2160.36', 'Kw/H'],
          ['运输', '630.33', 'Kw/H']
        ],
        index: true,
        columnWidth: [50, 100, 100],
        align: ['center'],
        rowNum: 7,
        headerBGC: '#1981f6',
        headerHeight: 45,
        oddRowBGC: 'rgba(0, 44, 81, 0.8)',
        evenRowBGC: 'rgba(10, 29, 50, 0.8)'
      }
    }
  }
}
</script>

<style lang="less">
#scroll-board {
  width: 25%;
  box-sizing: border-box;
  margin-left: 20px;
  height: 100%;
  overflow: hidden;
}
</style>
